home *** CD-ROM | disk | FTP | other *** search
- Path: informatik.tu-muenchen.de!fischerj
- From: fischerj@Informatik.TU-Muenchen.DE (Juergen "Rally" Fischer)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: ADDTOF()
- Date: 26 Jan 1996 02:46:46 GMT
- Organization: Technische Universitaet Muenchen, Germany
- Distribution: world
- Message-ID: <4e9fam$ron@sunsystem5.informatik.tu-muenchen.de>
- References: <4d5cac$orr@ulke.hiMolde.no>
- NNTP-Posting-Host: hphalle5.informatik.tu-muenchen.de
- X-Newsreader: TIN [version 1.2 PL2]
-
- Espen Berntsen (espen@hai.hiMolde.no) wrote:
- : When you make a VBL interrupt in C, you can use ADDTof() to add it to the
- : sustem, but they say you need to pass an initialized Isrvstr. How do you
- : initializa this?
-
- struct Isrvstr
- {
- struct Node is_Node;
- struct Isrvstr *Iptr; /* passed to srvr by os */
- int (*code)();
- int (*ccode)();
- int Carg;
- };
-
- well, that's all I know, RKM says nothing about how to init it :\ grrrrr.
- int (*code)() ? huh ? all they talk about is C code....
-
- try just allocating a zerofilled part of mem that can hold this struct.
- you however should only use this if somebody knowing confirms this method.
- the fact that you give the int(*ccode)() already in the other parameter
- lets me guess you only need a zerofilled one. but who knows....
-
- size of struct node is 14 ?
-
- struct Node {
- struct Node *ln_Succ;
- struct Node *ln_Pred;
- UBYTE ln_Type;
- BYTE ln_Pri;
- char *ln_Name;
- }; /* Note: word aligned */
-
- mhm is word aligning something extraordinary about structures ? funny.
-
-
- : --
-
- : Espen.Berntsen@hiMolde.no <> irc: Nameless <> http://www.himolde.no/~espen
- : ===========================================================================
- : Fighting for peace is like fucking for virginity.
-